class Animal {
    constructor(name) {
        this.name = name;
    }
}
class Cat extends Animal {
    sayHi() {
        console.log(`Meow, My name is ${this.name}`);
    }
}
let cat = new Cat('Tom');
cat.sayHi();
